Skip to content

feat: Use cf onboarding commands and CTAs on the homepage - #35862

Open
MattieTK wants to merge 3 commits into
productionfrom
docs/homepage-cf-cli
Open

MattieTK wants to merge 3 commits into
productionfrom
docs/homepage-cf-cli

Conversation

@MattieTK

@MattieTK MattieTK commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Updates the homepage (developers.cloudflare.com) to present Cloudflare CLI (cf) onboarding commands and calls to action directly rather than gating them behind the Wrangler/CF preference switcher.

  • Adds a Get started with cf CTA (/cf/get-started/) and a copyable npm install -g cf command block to the homepage hero (Hero.astro).
  • Removes the Wrangler/CF preference selector and variant wrappers from BuildFromScratch.astro, showing cf onboarding commands directly across all four primitive tabs (npx cf init my-app, cf ai run @cf/meta/llama-4-scout-17b-16e-instruct --prompt "Write a haiku about lava lamps", cf d1 create --name my-database, and cf images create --file ./image.png) and pointing the Compute CTA to /cf/get-started/first-worker/.
  • Updates BuildFromScratch component tests and adds a Hero component test.

Screenshots (optional)

Documentation checklist

Drive first-time visitors on developers.cloudflare.com directly toward the Cloudflare CLI (cf) rather than gating homepage commands behind the Wrangler/CF preference switcher:

- Add a Get started with cf CTA (/cf/get-started/) and a copyable npm install -g cf command block to Hero.astro.
- Remove the Wrangler/CF selector and variant wrappers from BuildFromScratch.astro, showing cf commands directly across Compute, AI, Storage & Databases, and Media, and repoint the Compute CTA to /cf/get-started/first-worker/.
- Update BuildFromScratch tests and add a Hero test.
@MattieTK
MattieTK marked this pull request as ready for review December 1, 2026 01:27
@MattieTK
MattieTK requested a review from a team as a code owner December 1, 2026 01:27
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

AI Review

✅ Reviewed b614668 · 1 finding · incremental

👉 Fix in your agent 👈
Fix the following review findings in PR #35862 (https://github.com/cloudflare/cloudflare-docs/pull/35862).

Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification.
- If you disagree, explain why.
- If you need clarification before deciding, ask those questions.
- Then share your plan for which issues to tackle and in what order.

After triaging, follow this order:
1. Post a comment on this PR for any findings you are skipping, with the finding ID and your reasoning.
2. Then commit the fixes for the legitimate findings.

The comment must come before the commit because the next review reads PR comments.

## Code Review
- C-0d9896b5 | src/components/landing/BuildFromScratch.astro:89 | Images command omits the `@` prefix that `cf` needs for file values
  The Media tab's copyable command passes a path without the `@` prefix. The `cf` docs show file-upload and file-input flags taking `@<path>` values (`cf pages deployments create --worker-js @./_worker.js`, `cf ai to-markdown --files @first.html @second.pdf`, `cf observability tail --filters @filters.json`), so `--file ./image.png` sends the literal string `./image.png` rather than the image contents.
  ```txt
  command: "cf images create --file ./image.png",
  ```

Code Review

  • src/components/landing/BuildFromScratch.astro:89 · Images command omits the @ prefix that cf needs for file values

    The Media tab's copyable command passes a path without the @ prefix. The cf docs show file-upload and file-input flags taking @<path> values (cf pages deployments create --worker-js @./_worker.js, cf ai to-markdown --files @first.html @second.pdf, cf observability tail --filters @filters.json), so --file ./image.png sends the literal string ./image.png rather than the image contents.

    command: "cf images create --file ./image.png",
Commands
  • /review Run a review now.
  • /full-review Review the entire PR diff.
  • /disable-auto-review Stop automatic reviews.
  • /rebase Rebase against production.

@cloudflare-docs-bot

Copy link
Copy Markdown
Contributor

Review coverage

🟡 1 ownership area needs approval.

Suggested reviewers: @MohamedH1998

Needs approval Eligible approvers Suggested
Other
/src/components/
@cloudflare/content-engineering MohamedH1998
CODEOWNERS mappings for displayed areas (1)
Pattern Owners
/src/components/ @cloudflare/content-engineering

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Replace cf ai models list with a live inference prompt using @cf/google/gemma-4-26b-a4b-it, which is open to Free and Paid accounts without a license gate or deprecation notice, and widen the CommandBlock slightly so the command stays untruncated on desktop.
Live-testing --prompt showed that gemma-4-26b-a4b-it and qwen3.8-27b truncate at 16 tokens in text completion mode and glm-4.7-flash returns a 500 error. @cf/meta/llama-4-scout-17b-16e-instruct is open to Free and Paid accounts with no license gate and reliably returns a clean haiku.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant